import { Notification } from 'element-ui'

const duration = 3000

export function successNotification(title, message) {
    Notification.success({
        title,
        message,
        duration
    })
}

export function infoNotification(title, message) {
    Notification.info({
        title,
        message,
        duration
    })
}

export function warningNotification(title, message) {
    Notification.warning({
        title,
        message,
        duration
    })
}

export function errorNotification(title, message) {
    Notification.error({
        title,
        message,
        duration
    })
}